package com.aj.databases.entry;

import java.io.Serializable;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "users")
public class User implements Serializable {
	private static final long serialVersionUID = 4858041413721273691L;
	public static final String ID = "id";
	public static final String USER_ID = "user_id";
	public static final String NAME = "user_name";
	public static final String PORTRAIT_PATH = "portrait_path";
	public static final String PORTRAIT_URL = "portrait_url";
	public static final String RELATIONSHIP = "relationship";
	@DatabaseField(generatedId = true, useGetSet = true, columnName = ID)
	private Integer id;
	@DatabaseField(useGetSet = true, columnName = USER_ID)
	private Integer user_id;
	@DatabaseField(useGetSet = true, columnName = NAME)
	private String name;
	@DatabaseField(useGetSet = true, columnName = PORTRAIT_PATH)
	private String portrait_path;
	@DatabaseField(useGetSet = true, columnName = PORTRAIT_URL)
	private String portrait_url;
	@DatabaseField(useGetSet = true, columnName = RELATIONSHIP)
	private String relationship;

	public User() {
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUser_id() {
		return user_id;
	}

	public void setUser_id(Integer user_id) {
		this.user_id = user_id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPortrait_url() {
		return portrait_url;
	}

	public void setPortrait_url(String portrait_url) {
		this.portrait_url = portrait_url;
	}

	public String getRelationship() {
		return relationship;
	}

	public void setRelationship(String relationship) {
		this.relationship = relationship;
	}

	public String getPortrait_path() {
		return portrait_path;
	}

	public void setPortrait_path(String portrait_path) {
		this.portrait_path = portrait_path;
	}
}
